package com.hwl.demo7;

import com.hwl.demo7.service.impl.TestPaperA;
import com.hwl.demo7.service.impl.TestPaperB;

/**
 * 模板方法模式
 *
 * @author sentry
 * @since 2023-03-18
 */
public class Main {

    public static void main(String[] args) {
        System.out.println("森的试卷：");
        TestPaperA studentA = new TestPaperA();
        studentA.testQuestion1();
        studentA.testQuestion2();
        studentA.testQuestion3();

        System.out.println("=======================");
        System.out.println("无名氏的试卷：");
        TestPaperB studentB = new TestPaperB();
        studentB.testQuestion1();
        studentB.testQuestion2();
        studentB.testQuestion3();
    }
}
